package com.guoning.office_system.mapper;

import com.guoning.office_system.model.Function;
import com.guoning.office_system.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("FunctionMapper")
public interface FunctionMapper {
    //    一级菜单
    List<Map> getMenuListByUserId(Criteria criteria);
    //    子菜单
    List<Map> getMenuByFuncId(Criteria criteria);

    int deleteByPrimaryKey(Long id);

    int insert(Function record);

    int insertSelective(Function record);

    Function selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Function record);

    int updateByPrimaryKey(Function record);
}